﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

public class SceneRunActor :SceneActor
{

    private SceneRunActorAvatar _avatar;
    public SceneRunActorAvatar RunActorAvatar
    {
        get
        {
            if (_avatar == null)
            {
                if (display != null)
                    _avatar = display as SceneRunActorAvatar;
            }
            return _avatar;
        }
    }

	public void Walk(Vector3 dir,float speed)
    {
        if (RunActorAvatar != null)
			RunActorAvatar.Walk(dir ,speed);
    }

	public void Stop(){
		if (RunActorAvatar != null)
			RunActorAvatar.Stop ();
	}


}
